import request from '@/utils/request'

export function getUserInfo() {
    return request({
        url: '/api/userinfo',
    })
}

export function logout() {
    return request({
        url: '/api/auth/logout',
        method: 'POST',
    })
}

export function updateEmail(data) {
    return request({
        url: '/api/updateEmail',
        data,
    })
}

export function resetPassword(data) {
    return request({
        url: '/api/register/reset',
        data,
        method: 'POST',
    })
}

export function updatePhone(data) {
    return request({
        url: '/api/updatePhone',
        data,
    })
}
